package com.house.repository;

import com.house.entity.Role;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * @author:lzq
 * @date: 2018/5/25 15:15
 */
public interface RoleRepository extends CrudRepository<Role,Long>{

    List<Role> findRolesByUserId(Long userId);

}
